STEP 15: As the loop runs, we'll want to add each value to a list to keep a record and keep them in order.

  • Click on . Drag out Append and drop it inside your loop.
  • Change the name in front to expected_vals.
  • Change the argument in .append() to theor_value.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)